import base64
import sys

flename=""
data=""
if len(sys.argv) > 2:
    flename=sys.argv[1]
    data=sys.argv[2]
    if len(data)>0:
        data=base64.b64decode(data)
        with open(flename,'wb') as file:
            file.write(data)
